package org.jeecg.modules.fund.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.fund.service.IFundAchievementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class FundAchievementJob {
    @Autowired
    private IFundAchievementService fundAchievementService;

    /**
     * 定时更新业绩
     * @throws InterruptedException
     */
    @Scheduled(cron = "0 02 08 * * MON-FRI")
    public void execute() throws InterruptedException {
        fundAchievementService.create();
    }
}
